package spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * project: wzq
 * ate: 14-9-4
 * author: wzq
 * description: TODO
 */
@Controller
@RequestMapping("/str")
public class StringBodyController {
    // localhost:8080/str?name=abc
    @RequestMapping(method = RequestMethod.GET)
    @ResponseBody
    public String foo(@RequestParam String name) {
        System.out.println("name=" + name);
        return "localhost:8080/str?name=" + name;
    }
}
